const globalData = {
    channelInfo: {},
    appId: 'wx482f91c56f4519f4',
    scene: '',
    navigationBarHeight: 44,
    model: false,
    userInfo: null,
    openId: null,
    loginid: null,
    myUserInfo: null, //自己的服务器返回的用户信息
    userInfoAuth: true //是否有用户授权
}

export function set(key, val) {
    globalData[key] = val
}

export function get(key) {
    return globalData[key]
}